package com.ssy.common.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ssy
 * <p>
 * 菜单树
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode {

    private Integer id;

    private Integer pid;

    private String title;

    private Integer type;

    private String href;

    private String icon;

    private Integer parentId;

    private String openType;

    private Integer available;

    private Integer ordernum;

    private String checkArr = "0";//默认不选中

    private List<TreeNode> children;

    public TreeNode(Integer id, Integer pid, String title, String chechArr) {
        this.id = id;
        this.pid = pid;
        this.title = title;
        this.checkArr = chechArr;
    }
}
